|
SPRITE FRAME
This command will return the frame of the specified sprite.
Return Integer=SPRITE FRAME(Sprite Number)
Sprite Number
Integer
The sprite number
This command will return the frame of the specified sprite
Frames are only returned from animated sprites created with the CREATE ANIMATED SPRITE command. You should specify the Sprite Number as an integer value.
create animated sprite 1,"manwalking.bmp",1,16,16,1
cls
sprite 1,100,100,1
play sprite 1,0,10,100
do
print "sprite frame ",sprite frame(1)
loop
end
SPRITE Commands Menu
Index
|